{include file="public/common" /}

<div style="padding:25px; width: 100%;">
    {volist name="order_goods" id="community"}
    <table class="layui-table inspection_table" width="100%">
        <thead>
        <tr>
            <th colspan="3">{$community.community_name}</th>
        </tr>
        <thead>
        <tr style="text-align: center;">
            <td width="30%">商品名称</td>
            <td width="30%">商品数量(重量)</td>
            <td width="30%">单价</td>
        </tr>
        </thead>
        <tbody>
        {volist name="community.data" id="goods"}
        <tr style="text-align: center;">
            <td>{$goods.goods_name}</td>
            <td>{$goods.count}</td>
            <td>{$goods.price}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {/volist}
</div>
<script>

    /* 导出供货单*/
    $(".export_supply_order").click(function () {
        var href = location.href;
        if (href.indexOf("?") > 0) {
            window.open(href + "&export=true");
        }
        else {
            window.open(href + "?export=true");
        }
    });


    layui.use('laydate', function () {
        var laydate = layui.laydate;
    });
    var date = $('#date').val();
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form()
                , layer = layui.layer
                , layedit = layui.layedit
                , laydate = layui.laydate;
    });
</script>